package tests;

import static org.junit.Assert.fail;
import game.Deck;
import game.Card;

import org.junit.Test;

public class DeckTest 
{
	Deck deck;
	
	@Test
	public void drawFromDeckTest() 
	{
		deck = new Deck();
		Card card;
		Card temp = deck.drawFromDeck();
		for(int i = 0; i<= 3; i++)
		{
			if(i == 5)
			{
				fail();
			}
			else
			{
				for(int j =0; j <= 12; j++)
				{
					card = new Card(i,j);
					if(card.toString().equals(temp.toString()))
					{
						break;
					}
				}
			}
		}
		
		if(deck.deckSize() == 52)
		{
			fail();
		}
	}
	
	@Test
	public void deckSizeTest()
	{
		deck = new Deck();
		if(deck.deckSize() != 52)
		{
			fail();
		}
	}

}
